package com.gqz.equip.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 新能源-物资-出入库工单设备详情vo
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "TEnWzCrkOrderEquipXqVo")
public class TEnWzCrkOrderEquipXqVo extends TEnWzEquipVo implements Serializable {


    @SchemaProperty(name = "主键")
    private String id;

    @SchemaProperty(name = "设备编码")
    private String sbbm;

    @SchemaProperty(name = "单据编码")
    private String djbm;

    @SchemaProperty(name = "是否删除 0否1是")
    private String sfsc;

    @SchemaProperty(name = "单据日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "djrq", format = "yyyy-MM-dd HH:mm:ss")
    private Date djrq;

    @SchemaProperty(name = "单据日期至")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "djrq_to", format = "yyyy-MM-dd HH:mm:ss")
    private Date djrq_to;

    @SchemaProperty(name = "类型 0入库 1出库")
    private String type;

    @SchemaProperty(name = "审核人")
    private String shr;
    @SchemaProperty(name = "出入库操作人")
    private String cjr;
    @SchemaProperty(name = "审核时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "shTime", format = "yyyy-MM-dd HH:mm:ss")
    private Date shTime;

    @SchemaProperty(name = "所属单位编码")
    private String ssdwbm;

}
